package cn.topcodes.tcsf.app.web.controller.api.protocol;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * Created by Unicorn on 2018/1/16.
 */
@Data
public class FindPassword {

    @NotBlank(message = "Verification code can not be blank")
    private String code;

    @NotBlank(message = "Username can not be blank")
    private String username;

    @NotBlank(message = "New password can not be blank")
    @Length(min = 6, max = 40, message = "Password length is 6 ~ 40 characters")
    private String password;
}
